package org.haredot.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

public class ServiceLog {
    /**
     * 日志编号
     */
    private Long id ;
    /**
     * 模块名
     */
    private String module ;
    /**
     * 请求方式
     */
    private String method ;
    /**
     * 操作人员
     */
    private String user ;
    /**
     * IP地址
     */
    private String ip ;
    /**
     * 操作地址
     */
    private String address ;
    /**
     * 请求路径
     */
    private String path ;
    /**
     * 业务层调用的方法名
     */
    private String methodName ;
    /**
     * 请求参数
     */
    private String params ;
    /**
     * 响应的结果
     */
    private String resultVo ;
    /**
     * 操作状态
     */
    private boolean status ;
    /**
     * 异常消息
     */
    private String message ;
    /**
     * 操作系统名称
     */
    private String osName ;
    /**
     * 浏览器
     */
    private String browserName ;
    /**
     * 操作时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime ;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getModule() {
        return module;
    }

    public void setModule(String module) {
        this.module = module;
    }

    public String getMethod() {
        return method;
    }

    public void setMethod(String method) {
        this.method = method;
    }

    public String getUser() {
        return user;
    }

    public void setUser(String user) {
        this.user = user;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public String getMethodName() {
        return methodName;
    }

    public void setMethodName(String methodName) {
        this.methodName = methodName;
    }

    public String getParams() {
        return params;
    }

    public void setParams(String params) {
        this.params = params;
    }

    public String getResultVo() {
        return resultVo;
    }

    public void setResultVo(String resultVo) {
        this.resultVo = resultVo;
    }

    public boolean isStatus() {
        return status;
    }

    public void setStatus(boolean status) {
        this.status = status;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public String getOsName() {
        return osName;
    }

    public void setOsName(String osName) {
        this.osName = osName;
    }

    public String getBrowserName() {
        return browserName;
    }

    public void setBrowserName(String browserName) {
        this.browserName = browserName;
    }


}
